import request from '@/utils/request'

// 查询房间资料列表
export function listHome(query) {
  return request({
    url: '/basic/home/list',
    method: 'get',
    params: query
  })
}

// 查询房间资料详细
export function getHome(homeId) {
  return request({
    url: '/basic/home/' + homeId,
    method: 'get'
  })
}

// 新增房间资料
export function addHome(data) {
  return request({
    url: '/basic/home',
    method: 'post',
    data: data
  })
}

// 修改房间资料
export function updateHome(data) {
  return request({
    url: '/basic/home',
    method: 'put',
    data: data
  })
}

// 删除房间资料
export function delHome(homeId) {
  return request({
    url: '/basic/home/' + homeId,
    method: 'delete'
  })
}
//----------------------
// 查询房间类型
export function listHomeType() {
  return request({
    url: '/basic/hometype/list',
    method: 'get'
  })
}


// 所有业主
export function listAllOwner() {
  return request({
    url: '/basic/owner/list',
    method: 'get'
  })
}

